package cn.xtxfan.domain.plan.service.impl;

import cn.xtxfan.domain.plan.model.dto.CheckAddPlanDTO;
import cn.xtxfan.domain.plan.model.dto.CheckPlanDTO;
import cn.xtxfan.domain.plan.model.entity.CheckPartnerEntity;
import cn.xtxfan.domain.plan.model.entity.CheckPlanEntity;
import cn.xtxfan.domain.plan.model.valobj.CheckPlanVO;
import cn.xtxfan.domain.plan.repository.IPlanRepository;
import cn.xtxfan.domain.plan.service.ICheckPlanService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * @className: CheckPlanService
 * @author: XTX
 * @date: 2025/7/19 20:17
 * @Version: 1.0
 * @description:
 */
@Service
public class CheckPlanService implements ICheckPlanService {

    @Resource
    private IPlanRepository repository;

    @Override
    public CheckPlanVO queryUserPartnerPlans(String userId) {
        return repository.queryUserPartnerPlans(userId);
    }

    @Override
    public void finishPlan(String planId) {
        repository.finishPlan(planId);
    }

    @Override
    public void delPlan(String planId) {
        repository.delPlan(planId);
    }

    @Override
    public void addPlan(CheckAddPlanDTO checkAddPlanDTO) {
        repository.addPlan(checkAddPlanDTO);
    }
}

